#include <stdio.h>
/*---------------
get_evennum()
Use: enter a number and checks if its even
-----------------*/
get_evennum(void)
{
int input = 0;

int multi;

puts("Enter your number");

scanf("%d",&input);

multi = input / 2;

	if(2 * multi != input)
		{
		puts("You have entered a non-even number.\n");
		}
	if(2 * multi == input)
		{
		printf("You entered %d, which is even\n", input);
		}

}

int main(void)
{

while (1)
{
int input = 0;


puts("\
Choose an option by entering the number next to it.\n\
Options:\n1 > See if a number is even.\n2 > Quit.");

scanf("%d",&input);

if(input == 1)
	{
	get_evennum();
	}

if(input == 2)
	{
	break;
	}

else
	{
	puts("\a");
	}
}

}
